﻿// -----------------------------------------------------------------------
// <copyright file="SqlDataProvider.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace NetFramework.DataAccess
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data.SqlClient;
    using System.Reflection;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    class SqlDataProvider : DataProvider
    {
        public SqlDataProvider()
        {
            this._name = "SqlClient";
            this._connectionObjectType = typeof(SqlConnection);
            this._commandObjectType = typeof(SqlCommand);

            this._paramDbType = typeof(SqlParameter);
            this._paramDbTypeProperty = this._paramDbType.GetProperty(
                    "SqlDbType",
                    BindingFlags.Instance | BindingFlags.Public);

            this._dataAdapterObjectType = typeof(SqlDataAdapter);
            this._commandBuilderObjectType = typeof(SqlCommandBuilder);
            this._parameterNamePrefix = "@";
        }
    }
}
